<template>
  <div id="aside">
    <el-menu :default-active="this.$route.fullPath" class="el-menu-vertical-demo"
             :collapse="$store.state.isCollapse"
             background-color="#F2F6FC"
             active-text-color=""
             text-color="black"
             router
             unique-opened>
      <el-menu-item>
        <template slot="title">
          <span slot="title"></span>
        </template>
      </el-menu-item>
      <el-menu-item index="/home">
        <i class="el-icon-office-building"></i>
        <template slot="title">
          <span slot="title">企业信息管理</span>
        </template>
      </el-menu-item>
      <el-menu-item index="/home/jobManage">
        <i class="el-icon-s-cooperation"></i>
        <template slot="title">
          <span slot="title">企业职位管理</span>
        </template>
      </el-menu-item>
      <el-menu-item index="/home/resumeManage">
        <i class="el-icon-s-order"></i>
        <template slot="title">
          <span slot="title">接收简历管理</span>
        </template>
      </el-menu-item>
      <el-menu-item index="/home/recruitManage">
        <i class="el-icon-receiving"></i>
        <template slot="title">
          <span slot="title">招聘流程管理</span>
        </template>
      </el-menu-item>
      <el-menu-item index="/home/talentsSearch">
        <i class="el-icon-s-custom"></i>
        <template slot="title">
          <span slot="title">人才搜索邀请</span>
        </template>
      </el-menu-item>
      <el-menu-item index="/home/preachManage">
        <i class="el-icon-video-camera"></i>
        <template slot="title">
          <span slot="title">企业宣讲管理</span>
        </template>
      </el-menu-item>

      <el-submenu index="/home/user">
        <template slot="title">
          <i class="el-icon-setting"></i>
          <span>个人信息管理</span>
        </template>
        <el-menu-item index="/home/personInfo">个人信息</el-menu-item>
        <el-menu-item index="/home/pwdChange">密码修改</el-menu-item>
        <el-menu-item index="/home/logoutUser">账号注销</el-menu-item>
      </el-submenu>
    </el-menu>
  </div>
</template>

<script>
export default {
  name: "Aside",
  data() {
    return {
      isCollapse: true,
    };
  },

}
</script>

<style scoped>
.el-menu--collapse {
  min-height: 100vh;
}

.el-menu-vertical-demo:not(.el-menu--collapse) {
  width: 200px;
  min-height: 100vh;
}


</style>
